<template>
  <div id="app">
    <KeepAlive>
      <router-view v-if="$route.meta.keepAlive" /> <!--缓存的在这里显示-->
    </KeepAlive>
    <router-view v-if="!$route.meta.keepAlive" /> <!--不缓存的在这里显示-->
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less"></style>
